#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	float r = 0;//	圆形的半径
	float h = 0; //    圆形的高
	float a = 0;
	float b = 0;
	float c = 0;
	float d = 0;
	float e = 0;
	printf("请输入圆形的半径！\n");
	scanf("%f", &r);
	printf("请输入圆形的高！\n");
	scanf("%f", &h);
	a = 2 * r * 3.14; //圆的周长
	b = r * r * 3.14; //圆的面积
	c = r * r * r * 3.14 * (float)4 /(float) 3;// 圆球的面积
	d = r * r * 3.14 * h;// 圆柱的体积
	e = 4 * 3.14 * r * r;//圆球的表面积
	printf("圆周长=%0.2f\n", a);
	printf("圆面积=%0.2f\n", b);
	printf("圆球体积=%0.2f\n", c);
	printf("圆柱体积=%0.2f\n", d);
	printf("圆球的表面积=%0.2f\n", e);
	return 0;
}
